namespace Dewin.BO.Base
{
    public class RunningBet
    {
        /// <summary>
        /// Id cua member chua bet
        /// </summary>
        public string MemberId { get; set; }

        /// <summary>
        /// Id cua member agent chua bet
        /// </summary>
        public string AgentMemberId { get; set; }

        #region Team
        /// <summary>
        /// Ten giai dau
        /// </summary>
        public string League { get; set; }

        /// <summary>
        /// Ten doi khach
        /// </summary>
        public string AwayTeam { get; set; }

        /// <summary>
        /// Ten doi nha
        /// </summary>
        public string HomeTeam { get; set; }

        /// <summary>
        /// So ban thang doi khach
        /// </summary>
        public int AwayScore { get; set; }

        /// <summary>
        /// So ban thang doi nha
        /// </summary>
        public int HomeScore { get; set; }

        /// <summary>
        /// Mau ten doi khach
        /// </summary>
        public string AwayColor { get; set; }

        /// <summary>
        /// Mau ten doi nha
        /// </summary>
        public string HomeColor { get; set; }
        #endregion

        #region Bet
        /// <summary>
        /// Id lay tu agent
        /// </summary>
        public string AgentBetId { get; set; }

        /// <summary>
        /// Id sau khi bet thanh cong
        /// Doi voi bet cua member trong agent thi co gia tri null
        /// </summary>
        public string BetId { get; set; }

        /// <summary>
        /// HT hay FT
        /// </summary>
        public string Coverage { get; set; }

        /// <summary>
        /// Loai bet: HDP, 1X2, OU, OE
        /// </summary>
        public string Type { get; set; }
        
        /// <summary>
        /// Chon gi: h, a, o, u, e...
        /// </summary>
        public string BetOption { get; set; }

        /// <summary>
        /// Hien thi loai chon: Ten doi chu nha, doi khach, over, under...
        /// </summary>
        public string BetDisplay { get; set; }

        /// <summary>
        /// So trai chap hoac so ban thang, so qua phat goc...
        /// </summary>
        public string PickHandicap { get; set; }

        /// <summary>
        /// Ti le tien nhan duoc neu thang/thua, lay tu Agent
        /// </summary>
        public double AgentOdds { get; set; }

        /// <summary>
        /// Ti le tien nhan duoc neu thang/thua, lay tu member
        /// </summary>
        public double Odds { get; set; }

        /// <summary>
        /// So tien cuoc cu the
        /// </summary>
        public double Stake { get; set; }

        /// <summary>
        /// Trang thai cua bet: New, InQueue, Betting, Success, Fail
        /// </summary>
        public string Status { get; set; }

        /// <summary>
        /// Thoi gian bet o client
        /// </summary>
        public string Time { get; set; }

        /// <summary>
        /// Thoi gian bet o server
        /// </summary>
        public string ServerTime { get; set; }
        #endregion

        /// <summary>
        /// Cho biet keo dang bet co phai la live ko
        /// </summary>
        public bool IsLive { get; set; }

        /// <summary>
        /// Luu doi tuong dong trong grid view chua thong tin cua bet
        /// </summary>
        public object Control { get; set; }
    }
}
